package online.longzipeng.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import online.longzipeng.back.pojo.entity.User;
import online.longzipeng.back.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lzp
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 查询团队下的所有成员
     */
    List<UserVo> listByTemId(@Param("id") Long id);

    /**
     * 通过名称查询用户
     */
    List<UserVo> search(@Param("nickName") String nickName,
                        @Param("teamId") Long teamId,
                        @Param("loginUserId") Long loginUserId);
}
